package org.fly.jingwei.service;

import org.pentaho.di.core.exception.KettleException;
import org.pentaho.di.trans.step.StepStatus;
import org.fly.jingwei.entity.TaskControlEntity;

import java.util.List;

/**
 *
 * @author leo
 * @date 2017/3/10
 */
public interface ControlService {
    List<TaskControlEntity> getAllRunningJob(String userGroupName) throws Exception;

    List<TaskControlEntity> getAllRunningTrans(String userGroupName) throws Exception;

    String getLogDetailForJob(String id, String hostName) throws Exception;

    String getLogDetailForTrans(String id, String hostName) throws Exception;

    List<StepStatus> getTransDetail(String id, String hostName) throws Exception;

    void stopTrans(String hostName, String id) throws Exception;

    void stopJob(String hostName, String id) throws Exception;

    void pauseOrStartTrans(String[] id, String[] hostName) throws Exception;
}
